package org.Array;

import java.util.Scanner;

public class ArrayDemo3 {
    public static void main(String[] args) {
        double[] scores = new double[6];
        Scanner sc = new Scanner(System.in);
        for (int i = 0; i < 6; i++) {
            System.out.println("第"+(i+1)+"个评委的打分为：");
            scores[i] = sc.nextDouble();
        }
        int sum = 0;
        int avg = 0;
        for (int i = 0; i < scores.length; i++) {

            sum += scores[i];
            avg = sum / 6;
        }
        System.out.println("您所得的平均分是："+avg);

    }
}
